// 加载table 数据
$(function(){
    $("#dataTable").bootstrapTable({ 
    	url: "/requestIpSet/list.json?random=" + Math.random(),
    	method:"get", 
    	pagination:true,
    	sidePagination:"server",
    	cache:false,
    	queryParams: function(params) {
            return $.extend({}, params, parseJson(decodeURIComponent($("#dataForm").serialize())));     
        }
   });
})
//url类型
function urlTypeFormatter(value, row) {
	if (row.URL_TYPE == 1) {
		return "球球大作战/贪吃蛇大作战";
	} else {
		return "欢乐球吃球";
	}
}
//查询
function findData(){
   $("#dataTable").bootstrapTable("refresh",{} ); 
}
/*bootstrap table点击行事件*/
$(function(){
	 $("body").on("click","table>tbody>tr",function(){
      $(this).css("background","#e1ecf1").siblings().css("background","");
   });
})
